<MDXHeader
  title="Slider"
  description="An input where the user selects a value from within a given range."
  docs="https://kobalte.dev/docs/core/components/slider"
/>

<ComponentPreview name="slider-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add slider
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Install the following dependencies: </Step>

```bash
npm install @kobalte/core
```

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="slider" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import { Slider, SliderFill, SliderThumb, SliderTrack } from "~/registry/ui/slider"
```

```tsx
<Slider>
  <SliderTrack>
    <SliderFill />
    <SliderThumb />
  </SliderTrack>
</Slider>
```
